﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ClientesPage.aspx.cs" Inherits="KandieWebProjectI.UI.Forms.ClientePages.ClientesPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Clientes</title>
    <link href="../../Styles/Cadastro.css" type="text/css" rel="stylesheet"/>
    <script src="../../Scripts/cadastro.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Clientes</h2><br />

    <div class="divGrid">
        <asp:GridView runat="server" ID="gridClientes"
                    AutoGenerateColumns="false" ForeColor="#333" GridLines="None"
                    DataKeyNames="Id"
                    ShowFooter="True"
                    AllowPaging="true"
                    PageSize="10">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775"/>
            <RowStyle BackColor="#F7F6F3" ForeColor="#333"/>
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/>
            <FooterStyle BackColor="#5d7B9D"/>

            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Código" ReadOnly="True" SortExpression="Id"/>
                <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome"/>
                <asp:BoundField DataField="Aniversario" HeaderText="Aniversário" SortExpression="Aniversario" DataFormatString="{0:dd/MM/yyyy}"/>
                <asp:BoundField DataField="DataCadastro" HeaderText="Data do Cadastro" SortExpression="DataCadastro" DataFormatString="{0:dd/MM/yyyy}"/>

                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton runat="server">Editar</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" OnClientClick="javascript:return confirm('Deseja realmente excluir o cliente selecionado?');">Deletar</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>

    <div class="divCodigo">
        <asp:Label ID="Label1" runat="server">Código:</asp:Label>
        <asp:Label runat="server" ID="txtCodigo" Text=""></asp:Label><br />
    </div>

    <div class="clear"></div>

    <div class="divCadastro">
        <asp:Label runat="server">Nome:</asp:Label>
        <asp:TextBox runat="server" ID="txtNome"></asp:TextBox><br />

        <asp:Label runat="server">Aniversário:</asp:Label>
        <asp:TextBox runat="server" ID="txtAniversario"></asp:TextBox><br />

        <asp:Label runat="server">Data de Cadastro:</asp:Label>
        <asp:TextBox runat="server" ID="txtDataCadastro"></asp:TextBox><br />
    </div>
</asp:Content>
